using System;
using System.Diagnostics.Contracts;
using System.Windows.Browser;

namespace OpenWaves
{
    public partial class Url
    {
        public static string Encode(string value)
        {
            Contract.Requires<ArgumentNullException>(value != null);

            return HttpUtility.UrlEncode(value);
        }

        public static string Decode(string value)
        {
            Contract.Requires<ArgumentNullException>(value != null);

            return HttpUtility.UrlDecode(value);
        }
    }
}